home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / gtetris / patch-2.1.3 < prev    next >
Internet Message Format  |  1995-05-03  |  7KB

  1. From: azhao@cs.arizona.edu (Qiang Alex Zhao)
  2. Date: 21 Jan 93 19:27:07 GMT
  3. Newsgroups: alt.sources
  4. Subject: Generic Tetris Patch 2.1.2 to 2.1.3
  5.  
  6.  
  7. Archive-name: gtetris
  8. Submitted-by: azhao@cs.arizona.edu
  9.  
  10.  
  11. diff -c tetris.2.1.orig/README tetris.2.1/README
  12. *** tetris.2.1.orig/README    Tue Jan 19 11:36:00 1993
  13. --- tetris.2.1/README    Thu Jan 21 12:17:33 1993
  14. ***************
  15. *** 1,5
  16.       GENERIC TETRIS
  17. !     ==============    Yet Another Tetris Game on X, V2.1.2
  18.   
  19.   
  20.   WHY ANOTHER?
  21.  
  22. --- 1,5 -----
  23.       GENERIC TETRIS
  24. !     ==============    Yet Another Tetris Game on X, V2.1.3
  25.   
  26.   
  27.   WHY ANOTHER?
  28. ***************
  29. *** 11,16
  30.   
  31.       Bull DPX/2        System V    ?
  32.       DEC 5000        Ultrix 4.2A    X11R4
  33.       HP 700            HP-UX 8.07    X11R5
  34.       Iris 4D            IRIX 4.0.1    Motif
  35.       Sun4, SPARC        SunOS 4.1.x    X11R4, X11R5
  36.  
  37. --- 11,17 -----
  38.   
  39.       Bull DPX/2        System V    ?
  40.       DEC 5000        Ultrix 4.2A    X11R4
  41. +     DEC Alpha AXP        DEC OSF/1 V1.2    ?
  42.       HP 700            HP-UX 8.07    X11R5
  43.       Iris 4D            IRIX 4.0.1    Motif
  44.       Sun4, SPARC        SunOS 4.1.x    X11R4, X11R5
  45. ***************
  46. *** 62,70
  47.   
  48.       In previous versions, all number keys on the keypad work. Since I'm
  49.       going to let the user fully configure things like key bindings,
  50. !     I'll only let those keys on the keypad with label '4', '5', '6'
  51. !     work for now, and do not include a key for "rotate
  52. !     counter-clockwise" (sorry :o).
  53.   
  54.       Refer to the man page for detailed command line options.
  55.   
  56.  
  57. --- 63,70 -----
  58.   
  59.       In previous versions, all number keys on the keypad work. Since I'm
  60.       going to let the user fully configure things like key bindings,
  61. !     I'll only let a few of them work for now, and do not include a key
  62. !     for "rotate counter-clockwise" (sorry :o).
  63.   
  64.       Refer to the man page for detailed command line options.
  65.   
  66. ***************
  67. *** 85,90
  68.   
  69.   HISTORY -- Oh no, not again: I failed my history course!
  70.   Well ... ACKNOWLEDGEMENTS
  71.   
  72.     [Jan 19, 93]  V2.1.2: Improved "paused" mode - so it won't take too
  73.           much CPU time - suggested by Philip JENNINGS
  74.  
  75. --- 85,95 -----
  76.   
  77.   HISTORY -- Oh no, not again: I failed my history course!
  78.   Well ... ACKNOWLEDGEMENTS
  79. +   [Jan 21, 93]  V2.1.3: Two bugs in finding user environment:
  80. +         "endpwent()" by Jari Tavi <jpt@rixrax.enet.dec.com>;
  81. +         "gethostname()" by Johan Vromans <jv@mh.nl>. Added two
  82. +         more arrow keys.
  83.   
  84.     [Jan 19, 93]  V2.1.2: Improved "paused" mode - so it won't take too
  85.           much CPU time - suggested by Philip JENNINGS
  86. Common subdirectories: tetris.2.1.orig/X11 and tetris.2.1/X11
  87. Common subdirectories: tetris.2.1.orig/bitmaps and tetris.2.1/bitmaps
  88. diff -c tetris.2.1.orig/tetris.c tetris.2.1/tetris.c
  89. *** tetris.2.1.orig/tetris.c    Tue Jan 19 11:36:49 1993
  90. --- tetris.2.1/tetris.c    Thu Jan 21 12:17:46 1993
  91. ***************
  92. *** 105,111
  93.       char           *argv[];
  94.   {
  95.       (void) fprintf(stderr,
  96. !            "                 GENERIC TETRIS V2.1.2\n");
  97.       (void) fprintf(stderr,
  98.        "Copyright (C) 1992-93      Q. Alex Zhao, azhao@cs.arizona.edu\n");
  99.       (void) fprintf(stderr,
  100.  
  101. --- 105,111 -----
  102.       char           *argv[];
  103.   {
  104.       (void) fprintf(stderr,
  105. !            "                 GENERIC TETRIS V2.1.3\n");
  106.       (void) fprintf(stderr,
  107.        "Copyright (C) 1992-93      Q. Alex Zhao, azhao@cs.arizona.edu\n");
  108.       (void) fprintf(stderr,
  109. ***************
  110. *** 177,183
  111.       (void) gethostname(myscore.myhost, NAMELEN);
  112.       setpwent();
  113.       pw = getpwuid(getuid());
  114. -     endpwent();
  115.       if (pw == NULL) {        /* impossible? */
  116.       (void) sprintf(myscore.myname, "%d", getuid());
  117.       myHome[0] = '.';
  118.  
  119. --- 177,182 -----
  120.       (void) gethostname(myscore.myhost, NAMELEN);
  121.       setpwent();
  122.       pw = getpwuid(getuid());
  123.       if (pw == NULL) {        /* impossible? */
  124.       (void) sprintf(myscore.myname, "%d", getuid());
  125.       myHome[0] = '.';
  126. ***************
  127. *** 187,192
  128.       (void) strncpy(myscore.myname, pw->pw_name, NAMELEN);
  129.       (void) strncpy(myHome, pw->pw_dir, FILENAMELEN);
  130.       }
  131.       myscore.myname[NAMELEN - 1] = '\0';
  132.       myscore.myhost[NAMELEN - 1] = '\0';
  133.       myHome[FILENAMELEN - 1] = '\0';
  134.  
  135. --- 186,192 -----
  136.       (void) strncpy(myscore.myname, pw->pw_name, NAMELEN);
  137.       (void) strncpy(myHome, pw->pw_dir, FILENAMELEN);
  138.       }
  139. +     endpwent();
  140.       myscore.myname[NAMELEN - 1] = '\0';
  141.       myscore.myhost[NAMELEN - 1] = '\0';
  142.       myHome[FILENAMELEN - 1] = '\0';
  143. ***************
  144. *** 251,256
  145.       env = &filenamebuf[0];
  146.       (void) strcpy(env, myHome);
  147.       len = strlen(env);
  148.       (void) gethostname(env + len, FILENAMELEN - len);
  149.       }
  150.       homeDB = XrmGetFileDatabase(env);
  151.  
  152. --- 251,257 -----
  153.       env = &filenamebuf[0];
  154.       (void) strcpy(env, myHome);
  155.       len = strlen(env);
  156. +     env[len++] = '/';
  157.       (void) gethostname(env + len, FILENAMELEN - len);
  158.       }
  159.       homeDB = XrmGetFileDatabase(env);
  160. diff -c tetris.2.1.orig/tetris.man tetris.2.1/tetris.man
  161. *** tetris.2.1.orig/tetris.man    Tue Jan 19 11:37:02 1993
  162. --- tetris.2.1/tetris.man    Thu Jan 21 12:18:04 1993
  163. ***************
  164. *** 1,4
  165. ! .TH TETRIS 6 "19 Jan 1993, V2.1.2" "Univ of Arizona"
  166.   .SH NAME
  167.   GENERIC TETRIS \- Yet Another Tetris Game on X
  168.   .SH SYNOPSIS
  169.  
  170. --- 1,4 -----
  171. ! .TH TETRIS 6 "19 Jan 1993, V2.1" "Univ of Arizona"
  172.   .SH NAME
  173.   GENERIC TETRIS \- Yet Another Tetris Game on X
  174.   .SH SYNOPSIS
  175. diff -c tetris.2.1.orig/utils.c tetris.2.1/utils.c
  176. *** tetris.2.1.orig/utils.c    Tue Jan 19 10:26:02 1993
  177. --- tetris.2.1/utils.c    Thu Jan 21 12:10:50 1993
  178. ***************
  179. *** 232,237
  180.       (unsigned char *) "j", sizeof(unsigned char));
  181.       XRebindKeysym(display, XK_Left, NULL, 0,
  182.       (unsigned char *) "j", sizeof(unsigned char));
  183.       XRebindKeysym(display, XK_R11, NULL, 0,
  184.       (unsigned char *) "k", sizeof(unsigned char));
  185.       XRebindKeysym(display, XK_R12, NULL, 0,
  186.  
  187. --- 232,241 -----
  188.       (unsigned char *) "j", sizeof(unsigned char));
  189.       XRebindKeysym(display, XK_Left, NULL, 0,
  190.       (unsigned char *) "j", sizeof(unsigned char));
  191. +     XRebindKeysym(display, XK_R8, NULL, 0,
  192. +     (unsigned char *) "k", sizeof(unsigned char));
  193. +     XRebindKeysym(display, XK_Up, NULL, 0,
  194. +     (unsigned char *) "k", sizeof(unsigned char));
  195.       XRebindKeysym(display, XK_R11, NULL, 0,
  196.       (unsigned char *) "k", sizeof(unsigned char));
  197.       XRebindKeysym(display, XK_R12, NULL, 0,
  198. ***************
  199. *** 238,243
  200.       (unsigned char *) "l", sizeof(unsigned char));
  201.       XRebindKeysym(display, XK_Right, NULL, 0,
  202.       (unsigned char *) "l", sizeof(unsigned char));
  203.   
  204.       /* create windows */
  205.       attvm = CWBackPixel | CWEventMask | CWDontPropagate | CWCursor;
  206.  
  207. --- 242,251 -----
  208.       (unsigned char *) "l", sizeof(unsigned char));
  209.       XRebindKeysym(display, XK_Right, NULL, 0,
  210.       (unsigned char *) "l", sizeof(unsigned char));
  211. +     XRebindKeysym(display, XK_Down, NULL, 0,
  212. +     (unsigned char *) " ", sizeof(unsigned char));
  213. +     XRebindKeysym(display, XK_R14, NULL, 0,
  214. +     (unsigned char *) " ", sizeof(unsigned char));
  215.   
  216.       /* create windows */
  217.       attvm = CWBackPixel | CWEventMask | CWDontPropagate | CWCursor;
  218. --
  219. = Qiang Alex Zhao                 ___       .             ______
  220.   Computer Science Dept          /   )     /|   )          __//  )
  221.   University of Arizona         /   /     /_|  / _        //    /_  _. ._
  222.   azhao@cs.arizona.edu         (__)(_o   /  (_(_(-'_)(   ((____/ (_(_(_(_)
  223.  
  224.